//
//  OperationView.h
//  FMRecordVideo
//
//  Created by 高波 on 2019/4/17.
//  Copyright © 2019 SF. All rights reserved.
//

#import <UIKit/UIKit.h>

//NS_ENUM，定义状态等普通枚举
typedef NS_ENUM(NSUInteger, PreviewMediaType) {
    PreviewMediaTypeImage,
    PreviewMediaTypeVideo,
};

NS_ASSUME_NONNULL_BEGIN

@protocol OperationViewDelegate <NSObject>

- (void)operationBackWithType:(PreviewMediaType)type;
- (void)operationCutWithType:(PreviewMediaType)type;
- (void)operationSureWithType:(PreviewMediaType)type;
@end

@interface OperationView : UIView

@property (nonatomic, assign)PreviewMediaType type;
@property (nonatomic, assign)id <OperationViewDelegate>delegate;

@end

NS_ASSUME_NONNULL_END
